import instance from "@/utils/request";

// 获取学生成绩列表
export  const  getScoreList  = (searchForm)=>instance.post('/scores/list',searchForm)

// 添加或修改学生成绩
export  const  saveOrUpdateScore  = (scoreForm)=>instance.post('/scores/saveOrUpdate',scoreForm)


// 添加或修改学生成绩
export  const  getScoreById  = (sid)=>instance.get('/scores/getById/'+sid)


//批量导入学生成绩信息
export  const  batchImportScore  = (formData)=>instance.post('/scores/batchImport/',formData)


// 导出数据  batchExport
export const batchExport = (queryParam)=>instance.get('/scores/excel',{params:queryParam,responseType:"arraybuffer"})

// 根据id 删除成绩
export const removeScore = (id)=>instance.delete('/scores/delete/'+id)


// 数据可视化接口
export const  scoreListApi = ()=>instance.get("/scores/screenData")


